home *** CD-ROM | disk | FTP | other *** search
- Path: soap.news.pipex.net!pipex!usenet
- From: m.hendry@dial.pipex.com (Mathew Hendry)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: playing 14 bit samples. how?
- Date: Tue, 23 Jan 96 04:07:22
- Organization: Private node.
- Distribution: world
- Message-ID: <19960123.45EA58.3E5E@am083.du.pipex.com>
- References: <4e0eeo$74f@tic.sm.dsi.unimi.it> <3103DED5.41C6@stud.unit.no>
- NNTP-Posting-Host: am083.du.pipex.com
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
-
- Steffen Thorsen (steffent@stud.unit.no) wrote:
- : stefano caselli wrote:
- : >
- : > I've found on Aminet some progs claiming to be able to play samples
- : > with 14 bit quality, using only the standard amiga audio hardware.
- : > I'd like to know how this can be done (if possible).
- : > Can someone post some text about it? (detailed explanations,please)
- : >
- : > thanx.
- : The Amiga has 8 bit sound by standard. But it also has 6 bit volume
- : registers for each sound channel which can be adjusted independently
- : from the main sound. And 6+8 bit is 14 bit as far as I know.
-
- If playing back 16 bit samples it's done like this:
-
- Representing each bit of the sample as 0123456789ABCDEF, in descending order
- of significance.
-
- Channel 1, volume 63, play bits 01234567
- Channel 2, volume 1, play bits __89ABCD
-
- with bits E and F (the least significant) discarded. The bits marked as "_"
- are permanently set to 0. If only the volume was specified as 8 bits - we'd
- be able to reproduce 16 bit samples fully :)
-
- (note that channel 1 only plays at 63x the volume of channel 2, not 64x. This
- is one of the reasons for requiring calibration, as described below).
-
- : It seems
- : easy, but needs a whole lot of CPU power doing this, while normal 8-bit
- : can be handled directly by DMA. Another problem is that you will have to
- : calibrate the programs to your speakers.
-
- You have to calibrate not to the speakers, but to the peculiarities of your
- Paula chip, because her D/A converters inevitably have some nonlinearities /
- mismatches between channels. If you look in the distribution for DeliTracker:
-
- DeliTracker222.lha mus/play 717K 1+Bugfixes & some new players/genies
-
- you will find a prefs editor to perform this calibration. DeliTracker's 14 bit
- noteplayer will use the settings produced by this program if available.
-
- BTW, don't think that the example settings included with the prefs program
- will be anywhere near to those required for your machine. I had a play with
- it and the settings I produced were miles away from those included in the
- archive (though the overall pattern pattern was similar).
-
- On a side note, calibrating sound output to your _speakers_ is likely to be
- horrendously difficult - you would have to use a "perfect" microphone to
- measure the output at different frequencies / volumes and shape the output
- waveforms to provide a match. And loudspeakers have too many horrible
- nonlinearities to make this at all easy - which is why good loudspeakers
- are so expensive. Now, if someone could design a "loudspeaker compensator"
- which could predict a speaker's behaviour and shape the input waveforms
- accordingly, he'd be in for an early, comfortable retirement ;)
-
- -- Mat.
-